package com.xxx.springboot.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 订单服务
 */
@Service
public class OrderService {
	
	Logger log = LoggerFactory.getLogger(OrderService.class);

	@Autowired
	private SendMessageService sendMessageService;
	
	// 订单取消处理
	public void cancelOrder() throws InterruptedException {
		log.info("订单取消. currentTime: "+System.currentTimeMillis());
		sendMessageService.sendMessage1();
		sendMessageService.sendMessage2();
	}

}
